<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<link href="/js/kindeditor-4.1.10/themes/default/default.css" type="text/css" rel="stylesheet">
<script type="text/javascript" charset="utf-8" src="/js/kindeditor-4.1.10/kindeditor-all-min.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/kindeditor-4.1.10/lang/zh_CN.js"></script>

<div data-options="region:'north'"style="min-height: 50px;height:20%">
      <br/>
      <label>品牌名称:</label>
      <input id="productBrandName" class="easyui-textbox" style="width:120px">&nbsp;&nbsp;&nbsp;
      <a href="#" class="easyui-linkbutton" iconCls="icon-search" onClick="selectItemBrandListFunction()">查询</a>
</div>

<div data-options="region:'center'"  style="width:100%;height:60%;min-height:630PX;">
    <table id="itemBrandList_dategrid" class="easyui-datagrid"></table>
</div>

<!-- 添加修改商品品牌dialog -->
<div id="itemBrandWindow" class="easyui-window" style="width:900px;height:700px;" title="商品品牌" modal="true" closed="true"  border="false">
       <div class="easyui-layout" style="width:835px;min-height:650px;margin-left:25px;">
           <div class="easyui-panel" title="" style="width:845px;border:0;margin-bottom:2px;padding:5px">
                <form id="itemBrandAddForm" name="itemBrandAddForm" class="itemForm" method="post">
                   <div style="width:416px;height:35px;border:1px solid #CCC;float:left;padding-left:0;margin-left:5px;margin-top:10px; overflow:hidden;padding-top:15px;">
                         <label  style="display: inline-block;width: 110px;text-align:right;">品牌名称：</label>
                         <input id="brandid" name="id" type="hidden" style="width:180px"/>
                         <input id="brand_name" name="brandName" class="easyui-validatebox textbox"   style="width:250px;height:25px;"  />
                   </div>
                   <div style="width:416px;height:35px;border:1px solid #CCC;float:left;padding-left:0;margin-left:5px;margin-top:10px; overflow:hidden;padding-top:15px;">
                          <label  style="display: inline-block;width: 110px;text-align:right;">品牌Logo：</label>
                          <a href="javascript:void(0)" class="easyui-linkbutton picFileUpload">上传图片</a>
                          <input type="hidden" id="brand_logo" name="logo"/>
                   </div>
                   <div style="width:416px;height:35px;border:1px solid #CCC;float:left;padding-left:0;margin-left:5px;margin-top:10px; overflow:hidden;padding-top:15px;">
                          <label  style="display: inline-block;width: 110px;text-align:right;">品牌图片：</label>
                          <a href="javascript:void(0)" class="easyui-linkbutton picFileUploadBrand">上传图片</a>
                          <input type="hidden" id="brand_image" name="brandImg"/>
                   </div>
                   <div style="width:416px;height:35px;border:1px solid #CCC;float:left;padding-left:0;margin-left:5px;margin-top:10px; overflow:hidden;padding-top:15px;">
                           <label  style="display: inline-block;width: 110px;text-align:right;">品牌官方地址：</label>
                           <input id="brand_address" name="companyUrl" class="easyui-validatebox textbox" style="width:250px;height:25px;"/>
                   </div>
                   <div style="width:816px;border:1px solid #CCC;float:left;padding-left:0;margin-left:5px;margin-top:10px; overflow:hidden;padding-top:15px;">
                           <label  style="display: inline-block;width: 810px;text-align:left;margin-bottom: 15px;margin-left: 30px;">品牌介绍：</label>
                           <textarea style="width:800px;height:200px;visibility:hidden;" id="brand_desc" name="description"></textarea>
                   </div>
                   <div style="width:416px;height:35px;border:1px solid #CCC;float:left;padding-left:0;margin-left:5px;margin-top:10px; overflow:hidden;padding-top:15px;">
                           <label  style="display: inline-block;width: 110px;text-align:right;">是否显示在首页：</label>
                           <input type="radio" id="0" name="showOnHomePage" value="0" checked="checked"  style="margin-left: 20px;"/><span>不显示</span>
                           <input type="radio" id="1" name="showOnHomePage" value="1" style="margin-left: 20px;" /><span>显示</span>
                   </div>
			       <div style="width:816px;height:35px;border:0px solid #CCC;float:left;padding-left:0;margin-left:5px;margin-top:10px; overflow:hidden;padding-top:15px;">
			           <div style="width:416px;margin-left:100px;text-align:left;margin-top:10px;">
			               <input name="" type="button" class="scbtn" onclick="saveItemBrand()" value="保存"/>
			           </div>  
			      </div>
			   </form>
          </div>  
     </div>   
</div> 


<script type="text/javascript" src="${path}/js/item/item-brand.js"></script>